<?php

declare(strict_types=1);

namespace App\Mall\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $order_id 订单id
 * @property int $goods_id 商品id
 * @property string $sub_no 子订单编号
 * @property string $symbol 
 * @property string $price 商品价格
 * @property string $pay_amount 支付价格
 * @property int $num 数量
 * @property string $cover 封面
 * @property string $name 商品名称
 * @property string $spec 规格
 * @property int $shop_id 
 */
class MallOrderItem extends MineModel
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'mall_order_item';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'order_id', 'goods_id', 'sub_no', 'symbol', 'price', 'pay_amount', 'num', 'cover', 'name', 'spec', 'shop_id'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'order_id' => 'integer', 'goods_id' => 'integer', 'price' => 'decimal:2', 'pay_amount' => 'decimal:2', 'num' => 'integer', 'shop_id' => 'integer'];
}
